<?php

namespace App\Models\Admin;

use Illuminate\Database\Eloquent\Model;

class Permission extends Model
{
    protected $table='permission';

    protected $hidden = [
        'created_at', 'updated_at',
    ];

    public function roles(){
    	return $this->belongsToMany(Role::class,'role_permission','permission_id','role_id');
    }
}
